<?php

/**
 * verwaltung actions.
 *
 * @package    adminslittlehelper
 * @subpackage verwaltung
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 2692 2006-11-15 21:03:55Z fabien $
 */
class addLocationAction extends sfAction
{
  /**
   * Executes index action
   *
   */
  public function execute()
  {
    
  	$location = new Standort();
    $location->setBenutzerId(1);
    $location->setName($this->getRequestParameter('location'));
    
    $location->save();

    $this->redirect('management/showOverview?id='.$location->getId());
  }
}
